import java.awt.event.*;
class click implements ActionListener{
	private String c="";
	private int value = -1;
	public click(String x){
		this.c = x;
	}
	public click(int t){
		this.value = t;
	}
	public void actionPerformed(ActionEvent e){
		//System.out.println("test*********************");
		if(value!=-1) System.out.println("\t"+value);
		if(value!=-1) test.add(value);
		else if(c=="清除") test.clear();
		else test.add(c);
	}
}